﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using T.Common.Domain.Common;

namespace RedDragon.Common.Domain.Manufacture
{
    /// <summary>
    /// 资源表
    /// </summary>
    [SugarTable("Resources")]
    public class Resources : BaseEntity
    {
        /// <summary>
        /// 资源id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]//IsPrimaryKey 主键 
        public int ResourceId { get; set; }
        /// <summary>
        /// 资源编码(雪花id)
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设置长度
        public string ResourceCode { get; set; }
        /// <summary>
        /// 资源名称
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设置长度
        public string ResourceName { get; set; }
        /// <summary>
        /// 可用数量
        /// </summary>
        public int ResourceNumber { get; set; }
        /// <summary>
        /// 摘要
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设置长度
        public string Abstract  { get; set; }
        /// <summary> 
        /// 状态 1-有效；2-无效
        /// </summary>
        public int ResourceState { get; set; }
        /// <summary>
        /// 是否删除 1-未删除；2-已删除
        /// </summary>
        public int IsResource { get; set; }
        /// <summary>
        /// 工作编码 (雪花id)
        /// </summary>
        public string WorkCenterCode { get; set; }
    }
}
